package com.mindao.app.lgc.controller;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.mindao.app.common.spring.controller.BaseBaseController;
import com.mindao.app.lgc.model.Student;

/**
/* 版权所有： 广州敏道科技有限公司
/*
/* 功能描述：
/*
/* 创 建 人：李国才
/* 创建时间：2016年7月8日 下午5:08:56 	
 **/
@Controller
@RequestMapping("/lgc/student")
public class StudentController extends BaseBaseController{
	
	@RequestMapping(method=RequestMethod.GET)
	public String list(HttpServletRequest request, HttpServletResponse response, HttpSession session, Model rhs){
		Student stu1=new Student(1L,"admin","管理员");
		Student stu2=new Student(2L,"zs","张三");
		Student stu3=new Student(3L,"ls","李四");
		List<Student> stuList=new ArrayList();
		stuList.add(stu1);
		stuList.add(stu2);
		stuList.add(stu3);
		rhs.addAttribute("stuList",stuList);
		return super.rtnDefault(request, response, session, rhs);
	}
}
